package car;

/**
 * @Author admin
 * @Date 2019/3/20 8:27
 */
public  class CarFactory {
    public  Car getCar(int choose){
        if (choose==1){
            return new BMW();
        }
        else if(choose==2){
            return new QQ();
        }else{
            return null;
        }
    }
}
